#ifndef __INF_WS2812_H__
#define __INF_WS2812_H__

#include "driver/gpio.h"
#include "Com_Debug.h"
#include "Inf_SC12B.h"

extern uint8_t black[3];
extern uint8_t white[3];
extern uint8_t red[3];
extern uint8_t green[3];
extern uint8_t blue[3];
extern uint8_t cyan[3];   /* 青色 */
extern uint8_t purple[3]; /* 紫色 */

// led 引脚P6 
#define LED_PIN GPIO_NUM_6
// 灯带数量
#define LED_STRIP_LED_COUNT 12

// 初始化 WS2812
void Inf_WS2812_Init(void);

/**
 * @brief 灯带颜色
 * @param key 按键 
 * @param color 颜色
 */
esp_err_t Inf_WS2812_LEDOn(Touch_Key key, uint8_t *color);

/**
 * @brief 关闭
 */
esp_err_t Inf_WS2812_LEDOff(void);

/**
 * @brief 跑马灯
 * 
 * @return esp_err_t 
 */
esp_err_t Inf_WS2812_PMD(void);
#endif /* __INF_WS2812_H__ */ 
